package com.vanzo.talkie;

import android.app.Fragment;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.vanzo.nfc.NFCActivity;
import com.vanzo.talkie2.R;

/**
 * Created by tisen on 2018/1/30.
 */

public class DrawFragment extends Fragment implements View.OnClickListener {

    private View root;
    private TextView nfc;


    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) {
        root = inflater.inflate(R.layout.fragment_draw, container, false);
        nfc = (TextView) root.findViewById(R.id.nfc);
        nfc.setOnClickListener(this);
        return root;
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.nfc:
                Intent intent = new Intent();
                intent.setClass(getActivity(), NFCActivity.class);
                startActivity(intent);
                break;
        }
    }
}
